package com.company;

/**
 * mamenghao
 * 2022/10/166:37 PM
 */
public class Person {
    String name;
    static int personCount=5000;

    /**
     * 静态代码块
     */
    static {
        System.out.println("静态代码块执行了···");
        personCount=10000;
    }
    public void show(){
        System.out.println("人的数量："+Person.personCount);
    }
}
